home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / HyperTalk / Serial Port Toolkit v.2.5 / Serial Port XCMD Docs / card_8518.txt < prev    next >
Encoding:
Text File  |  1988-05-10  |  1.6 KB  |  44 lines

  1. -- card: 8518 from stack: in
  2. -- bmap block id: 8999
  3. -- flags: 0000
  4. -- background id: 3170
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 2007
  11. -- rect: left=126 top=42 right=337 bottom=495
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 2
  16. -- text size: 10
  17. -- style flags: 0
  18. -- line height: 13
  19. -- part name: 
  20.  
  21.  
  22. -- part contents for background part 1
  23. ----- text -----
  24. SPOverview
  25.  
  26. -- part contents for background part 2
  27. ----- text -----
  28. The Interactive Video Toolkit interfaces to laserdiscs.
  29.  
  30. -- part contents for card part 1
  31. ----- text -----
  32. The HyperCard Serial Port Toolkit consists of a set of HyperTalk commands and functions which allow HyperCard stacks to control the serial ports of the Macintosh and communicate through them.
  33.  
  34. Before using the command in the toolkit, the following piece of HyperTalk code must be executed once:
  35.  
  36.      global SPortGlobals
  37.  
  38. It is only necessary to declare these globals (you don't need to put anything in them), and you only need to do it once. The best thing to do is put the code above in the openStack script for the stack.
  39.  
  40. Once this is done, the configureSPort command can be used to select the port and configure it. If you want the input buffered, you can use the setSPortBufferSize command to allocate the appropriate buffer. Then the sendSPort, recvChars, recvUpTo, charsAvailable, and breakSPort commands can be used to send and receive data. When done, the closeSPort command can be used to close the port.
  41.  
  42. -- part contents for background part 9
  43. ----- text -----
  44. Command: